package com.example.consumptionrecords.service.impl;

import com.example.consumptionrecords.entity.dto.ConsumptionRecordsDTO;
import com.example.consumptionrecords.entity.dto.QueryConsumptionRecordsDTO;
import com.example.consumptionrecords.mapper.ConsumptionRecordsServiceMapper;
import com.example.consumptionrecords.service.interfaces.ConsumptionRecordsService;
import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * hhzr9
 * 2024 \ 04 \ 07
 */

@Service
public class ConsumptionRecordsServiceImpl implements ConsumptionRecordsService {

	@Resource
	private ConsumptionRecordsServiceMapper consumptionRecordsServiceMapper;

	@Override
	public List<ConsumptionRecordsDTO> queryConsumptionRecords(QueryConsumptionRecordsDTO queryConsumptionRecordsVo, Integer userId) {
		return consumptionRecordsServiceMapper.dateQueryConsumptionRecords(queryConsumptionRecordsVo, userId);
	}
}
